﻿// See https://aka.ms/new-console-template for more information


using Calculator;

double num1, num2;
string s = string.Empty;
while (true)
{
    Console.WriteLine("请输入第一个数：");
    num1 = Convert.ToDouble(Console.ReadLine());
    Console.WriteLine("请输入第二个数：");
    num2 = Convert.ToDouble(Console.ReadLine());
    Console.WriteLine("请输入需要进行的操作（+-*/）：");
    s = Console.ReadLine();
    Console.WriteLine("结果为： " + new CalculatorC(num1, num2).GetResult(s).ToString());
}

